package cn.blossoming.controller.web;

import cn.blossoming.service.base.consts.SessionConst;
import cn.blossoming.service.dto.User;

public abstract class BaseController {


    protected User getCurrentUser() {
        return SessionConst.getCurrentUser();
    }

    protected Integer getCurrentUserId() {
        return getCurrentUser().getId();
    }
}
